#include "ApplicationLog.h"

void ApplicationLog::Print(const char* msg, Severity_t severity)
{
    if ( severity >= _min_log_level )
        std::cout << msg << std::endl;
}

void ApplicationLog::Print(const char* msg, int code, Severity_t severity)
{
    if ( severity >= _min_log_level )
        std::cout << msg << code << std::endl;
}

void ApplicationLog::SetMinimumLogLevel(Severity_t severity)
{
    _min_log_level = severity;
}

ApplicationLog* ApplicationLog::GetInstance()
{
    return _instance;
}

ApplicationLog::ApplicationLog()
{
}

ApplicationLog::Severity_t ApplicationLog::_min_log_level = ApplicationLog::DEBUG;

ApplicationLog* ApplicationLog::_instance = new ApplicationLog();
